package com.ithuaxin.identifier;

import java.util.Scanner;

public class NumSpliteTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int num = sc.nextInt();
        int hundreds = num / 100;
        int tens = num / 10 % 10;
        int ge = num - hundreds * 100 - tens * 10;
        System.out.println("百位："+ hundreds);
        System.out.println("十位："+ tens);
        System.out.println("个位："+ ge);
    }
}
